<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>欢迎来到location</title>
	</head>
	<body>
		
		<button type="button" onclick="refresh();">刷新当前业务</button>
		<!-- <button type="button" onclick="baidu();">百度</button> -->
		<button type="button" onclick="history();"><a href="index1.html">去到B</a></button>
		
		<button type="button" onclick="myforward();">前进</button>
		<button type="button" onclick="myback();">后退</button>
	</body>
	<script type="text/javascript">
		function refresh(){
			location.reload();
			
		}
		function baidu(){
			location.href = 'http://www.baidu.com';
		}
		function myforward(){
			history.forward();
			location.href='index1.html';
		}
		function myback(){
			history.back();
		}
	</script>
</html>
